<?php

class App_View_Helper_Header extends Zend_View_Helper_Abstract {
	
	function __construct() {
	
	}
	
	public function header() {
	    
	    $output = "<div class=\"navbar navbar-default navbar-fixed-top\" role=\"navigation\" style=\"background-color:#E4F1C8; background-image:url({$this->view->baseUrl('img/patterns/ecailles.png')})\">\n";
        $output.= "  <div class=\"container-fluid\">\n";
        $output.= "	<div class=\"navbar-header\">\n";
//        $output.= "	  <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-collapse\">\n";
//        $output.= "		<span class=\"sr-only\">Toggle navigation</span>\n";
//        $output.= "		<span class=\"icon-bar\"></span>\n";
//        $output.= "		<span class=\"icon-bar\"></span>\n";
//        $output.= "		<span class=\"icon-bar\"></span>\n";
//        $output.= "	  </button>\n";
        $output.= "	  <a class=\"navbar-brand\" href=\"{$this->view->baseUrl('default/index/home')}\"><img height=\"25px\" src=\"{$this->view->baseUrl('img/cun.png')}\" /> Sistema de Autoevaluación</a>\n";
        $output.= "	</div>\n";
        $output.= "	<div class=\"navbar-collapse collapse\">\n";
        $output.= "	  <ul class=\"nav navbar-nav navbar-right\">\n";
        //$output.= "     <li><a href=\"\" class=\"btn btn-link\"><span class=\"glyphicon glyphicon-home\"></span></a></li>";
        //$output.= "     <li><a href=\"#\"><b>".App_User::getNombreUsuario()." :: ".App_User::getNombreRol()."</b></a></li>\n";
        $output.= "		<li><a href=\"{$this->view->baseUrl('usuarios/seguridad/logout')}\"><span class=\"glyphicon glyphicon-log-out\"></span> Salir</a></li>\n";
        $output.= "	  </ul>\n";
//        $output.= "	  <form class=\"navbar-form navbar-right\">\n";
//        $output.= "		<input type=\"text\" class=\"form-control\" placeholder=\"Search...\">\n";
//        $output.= "	  </form>\n";
        $output.= "	</div>\n";
        $output.= "  </div>\n";
        $output.= "</div>\n";
		return $output;
		
		$text = "<TABLE border=0 cellSpacing=0 cellPadding=0 width=\"100%\">";
		$text.= "<TBODY>";
		$text.= "<TR>";
		$text.= "<TH bgColor=#ddddd2>";
		$text.= "<DIV align=right><IMG src=\"{$this->view->baseUrl('img/pixel.gif')}\" width=1";
		$text.= "height=10><FONT style=\"COLOR: #000000; FONT-SIZE: x-small\">[ <A";
		$text.= "title=\"Ingresar a la mesa de ayuda\"";
		$text.= "href=\"javascript:abrir_ventana('#','500','500','#');\">MESA";
		$text.= "DE AYUDA</A> ]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ <A ";
		$text.= "href=\"{$this->view->baseUrl('usuarios/seguridad/logout')}\" ";
		$text.= "target=_top>Salir </A>]</FONT>&nbsp;&nbsp;&nbsp;&nbsp;</DIV></TH></TR>";
		$text.= "<TR>";
		$text.= "<TH bgColor=#ddddd2><IMG src=\"{$this->view->baseUrl('img/pixel.gif')}\" width=1";
		$text.= "height=1></TH></TR>";
		$text.= "<TR>";
		$text.= "<TH bgColor=#000000><IMG src=\"{$this->view->baseUrl('img/pixel.gif')}\" width=1";
		$text.= "height=1></TH></TR>";
		$text.= "<TR>";
		$text.= "<TH background=\"{$this->view->baseUrl('img/fondo_men.jpg')}\">";
		$text.= "<TABLE border=0 cellSpacing=0 cellPadding=0 width=\"100%\">";
		$text.= "<TBODY>";
		$text.= "<TR>";
		$text.= "<Th width=\"44%\">";
		$text.= "<DIV align=left><IMG src=\"{$this->view->baseUrl('img/img_izq.jpg')}\" border=\"0\"></DIV></TH>";
		$text.= "<Th width=\"53%\">";
		$text.= "<DIV align=right></DIV></TH>";
		$text.= "<Th width=\"3%\">";
		$text.= "<DIV align=center>&nbsp;</DIV></TH></TR></TBODY></TABLE></TH></TR>";
		$text.= "<TR>";
		$text.= "<TH bgColor=#000000><IMG src=\"{$this->view->baseUrl('img/pixel.gif')}\" width=1";
		$text.= "height=1></TH></TR></TBODY></TABLE>";
		return $text;
	}

}

?>